package com.hksj.Intelligentmanagement.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/resource")
public class RuleController {


    @PostMapping("/process")
    public void process(@RequestBody Map<String, Object> params) {
        params.entrySet().stream().forEach(x -> {
            System.out.println(x.getKey() + ":" + x.getValue());
        });
    }
}